package com.cyt.sys.model.po;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @auther: liufu zhu
 * @create: 2018/11/30 14:33
 * @Description: 基础部分-组织机构
 */
@Getter
@Setter
@Table(name = "base_organization")
public class SysOrganization implements Serializable {
    @Id
    private String id;//组织机构id

    @Column(name = "name")
    private String name;//组织机构名称

    @Column(name = "code")
    private String code;

    @Column(name = "sort")
    private Integer sort;//排序

    @Column(name = "parent_id")
    private String parentId;//上级组织id

    @Column(name = "status")
    private String status;//状态

    @Column(name = "create_time")
    private Date createTime;//创建时间

    @Transient
    private String parentName;//上级组织名称
}